package org.jeecg.modules.demo.com.kunpeng.mapper;

import java.util.List;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import org.jeecg.modules.demo.com.kunpeng.entity.BrandCategory;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.jeecg.modules.demo.com.kunpeng.vo.BrandCategoryQueryListVO;
import org.springframework.stereotype.Repository;

/**
 * @Description: 商品类别
 * @Author: jeecg-boot
 * @Date:   2023-01-12
 * @Version: V1.0
 */
@Repository
public interface BrandCategoryMapper extends BaseMapper<BrandCategory> {

    /**
     * 根据类别名称模糊查询
     * @param page
     * @param categoryKeyWords
     * @return
     */
    List<BrandCategoryQueryListVO> queryListByCategoryName(Page<BrandCategoryQueryListVO> page,@Param("categoryKeyWords")String categoryKeyWords);

    /**
     * 根据类别名称模糊查询全部
     * @param page
     * @param categoryKeyWords
     * @return
     */
    List<BrandCategoryQueryListVO> queryListByCategoryNameAll(Page<BrandCategoryQueryListVO> page,@Param("categoryKeyWords")String categoryKeyWords);


    /**
     * 启用商品类别
     */
    int enableCategory(String id);

    /**
     * 禁用商品类别
     */
    int unEnableCategory(String id);

    /**
     * 根据商品分类查询
     */
    List<BrandCategory> queryListByClassificationName(String classificationName);
}
